package cn.com.xjnt.vas.ordering.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.frameworks.core.repository.BaseRepository;
import com.frameworks.core.service.AbstractBaseService;

import cn.com.xjnt.vas.ordering.domain.entity.FoodSeller;
import cn.com.xjnt.vas.ordering.repository.FoodSellerRepository;
import cn.com.xjnt.vas.ordering.service.FoodSellerService;

/** 
* 类说明：
* @author 作者 LUXIN
* @version 创建时间：2016年5月12日16:08:36
*/
@Service
@Transactional
public class FoodSellerServiceImpl extends AbstractBaseService<FoodSeller, Long> implements FoodSellerService {
    @Autowired
    private FoodSellerRepository foodSellerRepository;
    
    @Override
    protected BaseRepository<FoodSeller, Long> getBaseRepository() {
        return foodSellerRepository;
    }

    @Override
    public void save(FoodSeller entity) {
        super.saveOrUpdate(entity);
    }

    @Override
    public void update(FoodSeller entity) {
        super.saveOrUpdate(entity);
    }
}
 